package appcus

import (
	"github.com/gin-gonic/gin"
)

type CusOrderEvaluateRouter struct{}

// InitCusOrderEvaluateRouter 初始化 订单评价 路由信息
func (s *CusOrderEvaluateRouter) InitCusOrderEvaluateRouter(Router *gin.RouterGroup, pubRouter *gin.RouterGroup) {

	cusOrderEvaluateRouter := Router.Group("orderEvaluate")
	pubcusOrderEvaluateRouter := pubRouter.Group("orderEvaluate")
	{
		cusOrderEvaluateRouter.POST("evaluate", cusOrderEvaluateApi.CreateOrderEvaluate)          // 创建评论
		cusOrderEvaluateRouter.DELETE("evaluate", cusOrderEvaluateApi.DeleteOrderEvaluate)        // 删除评论
		cusOrderEvaluateRouter.PUT("evaluate", cusOrderEvaluateApi.UpdateOrderEvaluate)           // 更新评论
		cusOrderEvaluateRouter.GET("getEvaluateByOrderId", cusOrderEvaluateApi.GetOrderEvaluates) // 查询某个订单的评论
	}
	{

		pubcusOrderEvaluateRouter.GET("getAllEvaluate", cusOrderEvaluateApi.GetAllOrderEvaluates) // 获取订单的所有评价
	}
}
